<%@ page import="taxi.PedidoTaxi" %>

<div class="fieldcontain ${hasErrors(bean: pedidoTaxiInstance, field: 'tabelaPreco', 'error')} required">
	<label for="tabelaPreco">
		<g:message code="pedidoTaxi.tabelaPreco.label" default="Tabela Preco" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="tabelaPreco" name="tabelaPreco.id" from="${taxi.TabelaPreco.list()}" optionKey="id" required="" value="${pedidoTaxiInstance?.tabelaPreco?.id}" class="many-to-one"/>
</div>


<div class="fieldcontain ${hasErrors(bean: pedidoTaxiInstance, field: 'enderecoOrigem', 'error')} required">
	<label for="enderecoOrigem">
		<g:message code="pedidoTaxi.enderecoOrigem.label" default="Endereco Origem" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="enderecoOrigem" required="" value="${pedidoTaxiInstance?.enderecoOrigem}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: pedidoTaxiInstance, field: 'enderecoDestino', 'error')} required">
	<label for="enderecoDestino">
		<g:message code="pedidoTaxi.enderecoDestino.label" default="Endereco Destino" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="enderecoDestino" required="" value="${pedidoTaxiInstance?.enderecoDestino}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: pedidoTaxiInstance, field: 'horas', 'error')} required">
	<label for="horas">
		<g:message code="pedidoTaxi.horas.label" default="Horas" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="horas" required="" value="${pedidoTaxiInstance?.horas}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: pedidoTaxiInstance, field: 'minutos', 'error')} ">
	<label for="minutos">
		<g:message code="pedidoTaxi.minutos.label" default="Minutos" />
		
	</label>
	<g:textField name="minutos" value="${pedidoTaxiInstance?.minutos}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: pedidoTaxiInstance, field: 'tipotaxi', 'error')} required">
	<label for="tipotaxi">
		<g:message code="pedidoTaxi.tipotaxi.label" default="Tipotaxi" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="tipotaxi" name="tipotaxi.id" from="${taxi.Tipotaxi.list()}" optionKey="id" required="" value="${pedidoTaxiInstance?.tipotaxi?.id}" class="many-to-one"/>
</div>


<div class="fieldcontain ${hasErrors(bean: pedidoTaxiInstance, field: 'cliente', 'error')} required">
	<label for="cliente">
		<g:message code="pedidoTaxi.cliente.label" default="Cliente" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="cliente" name="cliente.id" from="${taxi.Cliente.list()}" optionKey="id" required="" value="${pedidoTaxiInstance?.cliente?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: pedidoTaxiInstance, field: 'pagamentoAntecipado', 'error')} ">
	<label for="pagamentoAntecipado">
		<g:message code="pedidoTaxi.pagamentoAntecipado.label" default="Pagamento Antecipado" />
		
	</label>
	<g:checkBox name="pagamentoAntecipado" value="${pedidoTaxiInstance?.pagamentoAntecipado}" />
</div>

<hr id="teste" noshade=”noshade”   align="right" />
<h3><p align="center"><span class="label label-success">Dados do Pagamento</span></p></h3>
<br/>

<p align="center"><img src="${resource(dir: 'images', file: 'bandeiras.jpg')}" alt="Grails"/></p>


<div class="fieldcontain ${hasErrors(bean: pedidoTaxiInstance, field: 'pagamento', 'error')} required">
	<label for="pagamento">
		<g:message code="pedidoTaxi.pagamento.label" default="Pagamento" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="pagamento" name="pagamento.id" from="${taxi.Pagamento.list()}" optionKey="id" required="" value="${pedidoTaxiInstance?.pagamento?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: pedidoTaxiInstance, field: 'numeroCartao', 'error')} ">
	<label for="numeroCartao">
		<g:message code="pedidoTaxi.numeroCartao.label" default="Numero Cartao" />
		
	</label>
	<g:textField name="numeroCartao" value="${pedidoTaxiInstance?.numeroCartao}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: pedidoTaxiInstance, field: 'nomeCartao', 'error')} ">
	<label for="nomeCartao">
		<g:message code="pedidoTaxi.nomeCartao.label" default="Nome Cartao" />
		
	</label>
	<g:textField name="nomeCartao" value="${pedidoTaxiInstance?.nomeCartao}"/>
</div>


<div class="fieldcontain ${hasErrors(bean: pedidoTaxiInstance, field: 'dataCartao', 'error')} ">
	<label for="dataCartao">
		<g:message code="pedidoTaxi.dataCartao.label" default="Data Cartao" />
		
	</label>
	<g:textField name="dataCartao" value="${pedidoTaxiInstance?.dataCartao}"/>
</div>



<div class="fieldcontain ${hasErrors(bean: pedidoTaxiInstance, field: 'codigoSeguranca', 'error')} required">
	<label for="codigoSeguranca">
		<g:message code="pedidoTaxi.codigoSeguranca.label" default="Codigo Seguranca" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="codigoSeguranca" type="number" value="${pedidoTaxiInstance.codigoSeguranca}" required=""/>
</div>



